//
//  queue.h
//  Algorithm
//
//  Created by ViliWen on 1/27/16.
//  Copyright © 2016 wlf92. All rights reserved.
//

#ifndef queue_h
#define queue_h

#include <stdio.h>
#include "list.h"

typedef List Queue;

#define queue_init list_init
#define queue_destroy list_destroy

int queue_enqueue(Queue *queue, const void *data);
int queue_dequeue(Queue *queue, void **data);

#define queue_peek(queue) ((queue)->head == NULL? NULL : (queue)->head->data)
#define queue_size list_size

#endif /* queue_h */
